package com.zyl.Ecs.common.domain.data.ext;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @version v1.0
 * @ProjectName: Ecs
 * @Package: com.zyl.Ecs.common.domain.data.ext
 * @ClassName: DataTypeExt
 * @Description TODO
 * @Author 翟玉龙
 * @Date 2024/12/7-0:12
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("ecs_sensor_type")
public class DataTypeExt {

    /**
     * 数据类型id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 数据类型单位
     */
    @TableField(value = "unit")
    private String unit;
}
